package Atest;

/**
 * @Author wangzhipeng
 * @Date 2020-08-24 9:03 上午
 * @Description
 */
public class Example{
    String str=new String("good");
    char[]ch={'a','b','c'};
    int[] i ={20,10};
    public static void main(String args[]){
        Example ex=new Example();
        ex.change(ex.str,ex.ch,ex.i);
        System.out.print(ex.str+" and ");
        System.out.print(ex.ch);
        System.out.print(ex.i[0]);
    }
    public void change(String str,char ch[],int[] i){
        System.out.println(this.str == str);
        str="test ok";
        System.out.println(this.str == str);
        ch[0]='g';
        i[0] = 1;
    }
}